import 'dart:math';

import 'package:common/common.dart';

abstract class LocalLog{
  static const int _LIMIT = 1000;
  static void log(String tag, String string){
    int length = (TUtil.lengthOfString(string)/_LIMIT + (TUtil.lengthOfString(string)%_LIMIT == 0? 0: 1)).toInt();
    for(int i=0;i<length;i++){
      print("$tag: ${string.substring(i*_LIMIT, min((i+1)*_LIMIT, string.length))}");
    }
  }
}